package cn.zkw.mapping;

import cn.zkw.vo.Comment;

import java.util.List;

public interface ICommentDao {
    public List<Comment> selectCommentByArticleId(Integer article_id);

    public Integer insertComment(Comment comment);

    /**
     * 分页查询
     * @param num
     * @return
     */
    public List<Comment> splitComment(Integer num);

    /**
     * 查询总数
     * @return
     */
    public Integer allCommentCount();

    /**
     * 根据id查询评论
     * @param comment_id
     * @return
     */
    public Comment selectCommentById(Integer comment_id);

    /**
     * 批量删除
     * @param comment_ids
     * @return
     */
    public Integer deleteCommentSet(List<Integer> comment_ids);
}
